package test;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import fachlogik.Haendler;
import fachlogik.Produkt;
import fachlogik.Shop;
import fachlogik.ShopException;

public class MockShop implements Shop
{
	private LinkedList<Produkt> produkte = new LinkedList<>();

	@Override
	public void speichern(Produkt p) throws ShopException
	{
		produkte.add(p);
		
	}

	@Override
	public List<Produkt> alleProdukte() throws ShopException
	{
		return produkte;
	}

	@Override
	public List<Produkt> suchen(String suchText) throws ShopException
	{
		return produkte;
	}

	@Override
	public void loeschen(Produkt p) throws ShopException
	{
		produkte.remove(p);
		
	}

	@Override
	public void beenden() throws ShopException
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public void speichern(Haendler h) throws ShopException
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Haendler> alleHaendler() throws ShopException
	{
		// TODO Auto-generated method stub
		return null;
	}

}
